package leitura.dinamica.workspace;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) 
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		Intent boa = new Intent(this, BoasVindas.class);
		final Intent ins = new Intent(getApplicationContext(), InserirLivro.class);
		final Intent ver = new Intent(getApplicationContext(), InserirLivro.class);
		
		startActivity(boa);

		final Button chamaIns = (Button) findViewById(R.id.incluirlivro_button);

		chamaIns.setOnClickListener(new View.OnClickListener() 
		{
			public void onClick(View v) 
			{
				startActivity(ins);
			}
		});
		
		final Button chamaVer = (Button) findViewById(R.id.verlivro_button);

		chamaVer.setOnClickListener(new View.OnClickListener() 
		{
			public void onClick(View v) 
			{
				startActivity(ver);
			}
		});
		
		
	}
}
